package cn.kgc.ywz.smbms.web.service.impl;

import cn.kgc.ywz.smbms.web.entity.Address;
import cn.kgc.ywz.smbms.web.mapper.AddressMapper;
import cn.kgc.ywz.smbms.web.service.AddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AddressServiceImpl implements AddressService {

    @Resource
    private AddressMapper addressMapper;

    @Override
    public List<Address> findByUserId(Long userId) {
        return this.addressMapper.selectByUserId(userId);
    }
}
